package com.frxuexi.park2210.user

import androidx.lifecycle.MutableLiveData
import com.frxuexi.lib_base.mvvm.BaseViewModel
import com.frxuexi.lib_base.net.ApiService
import dagger.hilt.android.lifecycle.HiltViewModel
import javax.inject.Inject

@HiltViewModel
class UserViewModel @Inject constructor(val apiService: ApiService):BaseViewModel() {
    var loginSuc =MutableLiveData<String>()

    fun login(map: Map<String,String>){
        httpRequest({apiService.login(mapToBody(map))},loginSuc::postValue)
    }
}